﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Eg.Core" namespace="Eg.Core">
    <class name="Child" table="Child">
        <id name="Id">
            <generator class ="foreign">
                <param name="property">Parent</param>
            </generator>
        </id>
        <one-to-one name="Parent" class="Parent" cascade="all"/>
    </class>
</hibernate-mapping>
